package com.stox.navigator.ui.swing.presenter;

import java.awt.Dimension;

import com.stox.core.ui.swing.widget.MainFrame;
import com.stox.navigator.ui.swing.view.NavigatorView;

public class NavigatorViewPresenter {

	
	public void present(NavigatorView view){
		if(view != null){
			MainFrame.getInstance().getDesktop().addView(view);
			Dimension d = view.getParent().getSize();
			//view.setSize(new Dimension(d.width/4,d.height - MainFrame.getInstance().getMessagePanel().getHeight()));
			view.setSize(new Dimension(d.width/4,d.height));
			view.show();
		}
	}
	
}
